package com.KKd.mapper;

import com.KKd.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;


public interface BookMapper {
    //增加一本书
    int addBook(Books book);
    //删除一本书
    int deleteBookById(@Param("bookID") int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(@Param("bookID")int id);
    //查询所有的书
    List<Books> queryAllBooks();
    //使用书名查询书籍
    Books queryBookByName(@Param("bookName")String bookName);
}
